package com.tenglong.teacher.ui.adapter.viewholder;

import android.content.Intent;
import android.view.View;

import com.tenglong.teacher.R;
import com.tenglong.teacher.services.HelpAndFeedbackInfo;
import com.tenglong.teacher.ui.adapter.viewholder.base.BaseViewHolder;
import com.tenglong.teacher.ui.setting.setting.AddFeedbackActivity;

/**
 * @author hdx on 2019/4/24.
 */
public class HelpAndFeedBackBottomViewHolder extends BaseViewHolder<HelpAndFeedbackInfo> {
    public HelpAndFeedBackBottomViewHolder(View itemView) {
        super(itemView);
        setListeners();
    }

    private void setListeners() {
        itemView.findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                itemView.getContext().startActivity(new Intent(itemView.getContext(), AddFeedbackActivity.class));
            }
        });
    }

    @Override
    public void setLayoutInfo(HelpAndFeedbackInfo info) {
    }
}
